#ifndef _BASE_THREAD_H__
#define _BASE_THREAD_H__

#include <pthread.h>

class BaseThread
{
public:
    BaseThread();
    ~BaseThread();

    virtual void DoProcess()=0;

    bool Start();
    void Join();

private:
    static void *DoProcess(void *param);

private:
    pthread_t thread_id_; 
};
#endif
